package com.bmslz.monitor.base.dto;

import com.bmslz.monitor.base.util.StringUtils;
import com.bmslz.monitor.base.config.excep.MyException;
import lombok.Data;

/**
 * @Description: 修改项目的关联告警模板入参
 * @Author: bobo
 * @Date: 2025-08-10
 * @Version: V1.0
 */
@Data
public class EditProjectAlarmModelDto {
    private String alarmModelId;//告警模板id
    private String projectId;//项目id

    public void check() {
        if (StringUtils.isEmpty(projectId)) {
            throw new MyException(500, "项目id不能为空");
        }
    }
}
